from django.contrib import admin
from slide.models import Slide

# Register your models here.
class SlideAdmin(admin.ModelAdmin):			#根据惯例常规写法
    list_display = ('id', 'title') 			#显示后台要显示的东西

admin.site.register(Slide, SlideAdmin)  #注册到后台